Closed Thread Icon

Preserved Topic: Help whats wrong! (Page 1 of 1) Pages that link to <a href="https://ozoneasylum.com/backlink?for=17854" title="Pages that link to Preserved Topic: Help whats wrong! (Page 1 of 1)" rel="nofollow" >Preserved Topic: Help whats wrong! <span class="small">(Page 1 of 1)</span>\

 
nt_junki
Nervous Wreck (II) Inmate

From:
Insane since: Aug 2000

posted posted 09-09-2000 15:14

I would like the result of the search to appear in the same windows, possibly I'm using the wrong javscript command but I can't see it!

<Script Language="JavaScript">
function Redirect ()
{
if (document.TheForm.NoEntry.value == "0000")
{window.open("PositiveResult_01.html")}
if (document.TheForm.NoEntry.value == "Fire Stopping")
{window.open("PositiveResult_02.html")}
if (document.TheForm.NoEntry.value == "Cerberus")
{window.open("PositiveResult_03.html")}
}
</Script>

Please help

Slime
Lunatic (VI) Mad Scientist

From: Massachusetts, USA
Insane since: Mar 2000

posted posted 09-09-2000 18:46

Well, if you could explain your problem in greater detail, that would help. I think I know what you mean, but I'm not sure. If i'm right, then this should work:

window.open("PositiveResult_01.html", "mypopupwin")

Just insert that second argument into each one of the window.open functions that you have.

nt_junki
Nervous Wreck (II) Inmate

From:
Insane since: Aug 2000

posted posted 09-11-2000 10:36

Sorry for not explaining proppely, I have written a search page - the code I submitted is the code that checks the users entry. What I am trying to do is to have the result of the quere be displayed in the same page not open up a new page which it does every time. I had tryed your suggestion and is still opens up a new window. is this so hard to do or am I appriching this from the wrong angle?

Slime
Lunatic (VI) Mad Scientist

From: Massachusetts, USA
Insane since: Mar 2000

posted posted 09-11-2000 23:12

Ah, the window.open function opens a new window, that's right. Instead, try this:

window.location = "PositiveResult_01.html";

(If that doesn't work, then use window.location.href instead of window.location.)

« BackwardsOnwards »

Show Forum Drop Down Menu