Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var x = 0
- mySearch = location.search.substr(1).split("?")
- if (mySearch == "pack2") {
- alert(mySearch);
- } else {
- }
- I have passed the variable okay to next page and then I can read the variabe I have passed and
- display it in messege box using the code above. But i want it to instead of alerting to perform
- another javascript function. I have tried
- var x = 0
- mySearch = location.search.substr(1).split("?")
- if (mySearch == "pack2") {
- function()
- } else {
- }
- but it doesnt work can any help me please?
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement