Click to See Complete Forum and Search --> : If you open wrong page
tobbecokta
11-12-2003, 09:41 AM
Hello!
I have a homepage with frames. But if a visitor comes direcly to the mainframe, can i send him back to the same page but with frames?
Is it possible and in that case, what kind of script do i use?
Very thankful for any answers!
Greetings,
Tobias Bindemo
Charles
11-12-2003, 09:48 AM
You can, but only for those who use JavaScript and frames.
1) Make sure that your page can stand on itself. This can be as easy as putting your site name on each page and providing a links to the menu frame.
2) Save your frameset with a different name and change the value of the "src" attributes as appropriate.
3) Post on the page that link address as the preferred URL.
4) Use something like if (self.location == top.location) {top.location = newFrameset.html}.
tobbecokta
11-12-2003, 10:59 AM
Yes!
I want something like number 4. But i don't know how i do it. Do you think you can help me?
Greetings,
Tobias Bindemo
Charles
11-12-2003, 11:42 AM
Number 4 only works once you have done numbers 1 through 3, inclusive. Those aren't options, those are steps.