A simple and Not So Simple Question

J

JaFunk04

The Simple Question

How do I make Javascript open a new page in the current browser window? You would think this would be really easy. Right now I have to window.open("www.com") but document.open("www.com") dosen't work. (www.com is a general term

The Not-So Simple Question

Why does my website work right when I use the preview button in FP, it works perfectly. But once I publish the site, it ceases to work, And not only if i publish it, but even open the website without frontpage, it dosen't work correctly. A lot of it is my coding just stops working, it might just be elements of it, but I don't understand. One page just opens the html, or coding of it without displaying the accutal page. Help?
 
J

Jon Spivey

Hi,
For the simple question either
location.href='page.htm'
or
location.replace('page.htm')
depending on what you want to happen with the users history, specifically
what you want to happen when the user presses back in their browser. Try
them both out to see the difference

We can't solve anything if all we have to go on is "it doesn't work" - can
you be more specific what did you expect to happen? and what actually
happened? or better still post up the url of the offending page

--
Cheers,
Jon
Microsoft MVP - FP

JaFunk04 said:
The Simple Question:

How do I make Javascript open a new page in the current browser window?
You would think this would be really easy. Right now I have to
window.open("www.com") but document.open("www.com") dosen't work. (www.com
is a general term)
The Not-So Simple Question:

Why does my website work right when I use the preview button in FP, it
works perfectly. But once I publish the site, it ceases to work, And not
only if i publish it, but even open the website without frontpage, it
dosen't work correctly. A lot of it is my coding just stops working, it
might just be elements of it, but I don't understand. One page just opens
the html, or coding of it without displaying the accutal page. Help?
 
Top