How can a page be forced to load another page in JavaScript?

My code :

<!DOCTYPE html>
		<title>Page Title</title>
		<script language="JavaScript" type="text/javascript" >

error message:

JavaScript Console
Uncaught SyntaxError: Unexpected token '<'
Line: 3

Please rectify my mistake and explain how to force load a page in JavaScript.

Well the error quite speaks for itself.

Unexpected token ‘<’

Keep in mind that anything between the <script> </script> tags has to be valid Javascript syntax.


Thanks :+1: :ok_hand:


This topic was automatically closed 18 hours after the last reply. New replies are no longer allowed.