Html Question, Sorry DOnt mind if you are not interested

Im really sorry for posting this

Yall people respond quickly about c++ stuff , i guess i can try for html sorryyyy

IF someone can help me about html css javascrip pls help me

Last edited on
At least post your question so we can answer it!
itry to open html file on the same page with this

window.location.href - THis one didint work at all (For me)

&

window.open - This one works but i need to make it open the file on the same page (i already try
window.open("file.html","_self")

Why not use an iframe that covers the entire page?

var body = document.getElementById("body");
body.innerHtml = '<iframe height="100%" width="100%" src="page_you_want_to_show"></iframe>'

I mean, it could work.. probably not the best decision, but still..
Last edited on
What about these methods?
https://www.w3schools.com/howto/howto_js_redirect_webpage.asp

(Edit: I think you’d better post questions like this in the “lounge” section)
Last edited on
window.location.replace('http://w3c.com');

It’s better than using window.location.href = 'http://w3c.com';

Using replace() is better for redirect, because it does not keep the originating page in the session history, meaning the user won’t get stuck in a never-ending back-button fiasco. More... http://net-informations.com/q/mis/redirect.html
Topic archived. No new replies allowed.