A simple and Not So Simple Question

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

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?
 
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?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

when building.... 4
Access Simple Access subForm question 0
simple page question 2
work around popup blockers 1
Some links n/w in Firefox 2
So Simple, Yet... 13
Positioning 1
FP 2003 Page Banners don't display 3

Back
Top