Wednesday, July 17, 2013

Redirect dengan HTML

Membawa pengunjung secara automatik ke laman yang lain boleh dilakukan dengan menggunakan kaedah redirect dengan HTML. Berikut adalah contoh kod aturcara bagi fail .html di mana <meta http-equiv="refresh" content="1;url=http://contoh.com"> akan berfungsi membawa pengunjung ke URL baru.

<!DOCTYPE HTML>
<html lang="en-US">
<head>
<meta charset="UTF-8">
<meta http-equiv="refresh" content="1;url=http://contoh.com">
<title>Contoh Redirect</title>
</head>
<body>
<!-- Note: don't tell people to `click` the link, just tell them that it is a link. -->
If you are not redirected automatically, follow the <a href='http://wapps.uthm.edu.my/ppa/tawaran'>link to..</a>
</body>
</html>
Share:

4 comments:

  1. 8Ve4cm http://www.FyLitCl7Pf7kjQdDUOLQOuaxTXbj5iNG.com

    ReplyDelete
  2. xww3eq http://www.FyLitCl7Pf7kjQdDUOLQOuaxTXbj5iNG.com

    ReplyDelete
  3. UF85kT http://www.FyLitCl7Pf7kjQdDUOLQOuaxTXbj5iNG.com

    ReplyDelete
  4. BjWkYp http://www.FyLitCl7Pf7kjQdDUOLQOuaxTXbj5iNG.com

    ReplyDelete