javascript দিয়ে পেজ কে redirect করার সহজ উপায় কি?

asked 21 Jan '15, 16:32

Minhaj%20Hasan's gravatar image

Minhaj Hasan
59421337


window.location = "yoursite.com";

permanent link

answered 21 Jan '15, 16:36

Sharif%20Chowdhury's gravatar image

Sharif Chowdhury
3.5k111

// similar behavior as an HTTP redirect

window.location.replace("http://ask.dimikcomputing.com");

// similar behavior as clicking on a link

window.location.href = "http://ask.dimikcomputing.com";

permanent link

answered 21 Jan '15, 16:40

ishahriyar's gravatar image

ishahriyar
9519

edited 21 Jan '15, 16:41

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×31
×16
×1

question asked: 21 Jan '15, 16:32

question was seen: 1,647 times

last updated: 21 Jan '15, 16:41