Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Guys a quick question please.....

Status
Not open for further replies.

coldfused

Technical User
Jan 27, 2001
2,442
US
I want a page to contain some sort of javascript or something that says no matter where the page is linked from it will always open as a pop up, with no tool bars ect.....

So if tek tips linked to this page, it will open as a pop up without tek tips having to code it in there link.

make sense?

carlsatterwhite@orlandomediasolutions.com
 
>> make sense?

i think the only way to do that is to dynamically modify the settings in ur onload() event handler. How many of those attributes u can effect that way i don't know. -There are only 10 types of people in the world, those who understand binary and those who don't-

-pete
 
Well... how that would work I'm not 100% certain...

So you have the main page and the popup page.

Have the main page open the popup, then go back one in its history.

Problem is, if a site like tek-tips accesses it, it's already in a popup and there is no back one in its history... I'm sure you could monitor for that somehow though, and in that case just close the page without even information the user.

If all you want is to make sure your page is always a popup though, then just make the page open a popup and close itself... if someone else directs away from their site when linking to you that's not really your fault, or something you can guarantee to handle well (sometimes using a back history like I suggested will cause the page to reload a form or recall some function which is going to be a pain for you)

-Rob
 
I can redirect the page with no problem. So if say joe blow clicks on this link from a another site that is linking back to the page I built, it goes through the re-direct which calls the pop-up.

I was just hoping there was a easier way to have it open as a pop up always no matter where it was accessed from, and i'm sure there is, I have seen it some where. Will look into the onload thing palbano reccommended. Also will drop by the javascript forum.

See what that brings up.

Was just simply trying to get around the re-directs.

carlsatterwhite@orlandomediasolutions.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top