2

My Scenario,

We Have wriitten a javascript in click on image to open the curtain raiser.When its done it should redirect to a page in website.How do we achive this? Please Help

2 Answers 2

5

If you'd like a more detailed answer, you should provide your existing JavaScript. Otherwise, this is the best that I can do.

To redirect a page, change the window.location.href property:

window.location.href = "http://yourpage.com";
Sign up to request clarification or add additional context in comments.

2 Comments

I have tried its working.Is it possible to redirect a aspx Page through this way.
@ShinyManu, Yes! You can redirect to any valid URL using this method.
0
 <img src="images/myimage.jpg" name="btnHello" onclick="Test();"/>

function Test() {
window.location.href = "page to be redirected url";
 }

Something like this?

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.