...

View Full Version : Open a new page but keep the current page.



nodeffect
03-19-2005, 04:01 AM
Hi there, could you guys help me out?

Ok, what I want is, how do i make a page which will open a new page but the current page will go back to the previous page?

Like, ok, when i click on a link, it will go to another page which will open another window, and after that, the current page will go back to the previous page....

and i know, we can make it once click on a link, it automatically open a new page, but i dont want that, i want go to another page and open a link and go back...

I hope you could understand my question... Thanks alot...

A1ien51
03-19-2005, 04:04 AM
pop up blockers would block it....

nodeffect
03-19-2005, 04:39 AM
hmm, well, can give me the codes ? or can i find from other website?

vwphillips
03-19-2005, 10:07 AM
very crude but

b1.htm


<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">

<html>

<head>
<title></title>

<script language="JavaScript" type="text/javascript">
<!--
// Script produced with PopUpGenerator
// by Vic Phillips http://www.vicsjavascripts.org.uk

// Insert this script between the <header> tags

var pugWindow1=null;

function pugNewWindow(pugname,puglink){
pugCloseWin();

if (pugname==pugWindow1){
pugWindow1=window.open(puglink,'pugWindow1','width=300,height=300');
}
}

function pugCloseWin(){
// Recommended - include onunload="pugCloseWin();" in the <body> tag.
if (pugWindow1&&!pugWindow1.closed){ pugWindow1.close(); }
}

function Back(){
loc=self.location+'';
window.top.location=loc.split('?')[1];
}

//-->
</script>


</head>

<body onload="javascript:pugNewWindow(pugWindow1,'http://www.vicsjavascripts.org.uk');Back();">

</body>

</html>


b0.htm


<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">

<html>

<head>
<title></title>
</head>

<body>

</body>
<a href="b1.htm?b0.htm">Link</a>
</html>

suendisra
03-20-2005, 07:54 PM
I'm thinking frames would work the best. Sure, you end up writing a couple more pages than you'd like, but it avoids pop-up blockers, and it gives you the freedom to have as many windows as you'd like. Plus, in my opinion, I think it looks more professional, and you'll want that.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum