Welcome to WebmasterWorld Guest from

Forum Moderators: open

Message Too Old, No Replies

redirect and load page with new variables



10:26 am on Sep 9, 2010 (gmt 0)

5+ Year Member


I have a page that loads with certain divs hidden for the generic use of the page but I need to create a function that requires some divs to be shown if the page has been access from a particular url.

From reportgenAddL-chooseB.aspx there is an onclick function:

function fncAddLChosenB() {
window.location = 'clientPL.aspx';

when it loads clientPL.aspx from this onclick I need to create an onload function thats makes the following happen:

function fncLoadAddLChosenB() {
document.getElementById("fadedbg").style.display = 'block';
document.getElementById("addLPopup2").style.display = 'block';

Is it possible add a variable that checks if it's come from reportgenAddL-chooseB.aspx during the load so that I can add the style change to view the normally hidden divs?

thanks in advance


10:29 am on Sep 9, 2010 (gmt 0)

5+ Year Member

Or if there is a way to built it into one function this would be better, so that the one function redirects to the page and tells it to changes the style of the elements at the same time.

Featured Threads

Hot Threads This Week

Hot Threads This Month