Hi there, not through a pop-up window. Ideally I want a link to contain a querystring, like '?color=black' and for this color to be placed in a class within the <body> tag on another page, if that at all makes sense.
The first piece of code works:
function gup( name )
name = name.replace(/[\\/,"\\\\\\[").replace(/[\\]]/,"\\\\\\]");
var regexS = "[\\\\?&]"+name+"=([^&#]*)";
var regex = new RegExp( regexS );
var results = regex.exec( window.location.href );
if( results == null )
var color = gup( 'color' );
This get's the querystring from another page, but then I cannot do anything with is as my true goal is to change the <body> and add another class in there resembling the colour name, either being black, white, blue, green etc.
I will work on it and see what I can come up with, thanks again for your help.
Could you give me an example of putting "test.className" in the body tag. I think this would solve the issue.