Renaud
Renaud

Reputation: 4668

How to change the baseURI of a Node in Javascript

The MDN doc claims that there are two ways of changing a Node .baseURI attribute:

They don't provide an explanation as to how it can be done dynamically (2). They also state that you shouldn't add <base> elements in html documents (1).

How can I change the .baseURI attribute dynamically in Javacsript?

[EDIT] According to this SO using base is perfectly legit. Why is MDN advising against it then?

Upvotes: 10

Views: 4484

Answers (1)

Yavor
Yavor

Reputation: 713

I believe the .baseURI attribute is read only. Check here: http://help.dottoro.com/ljhvjgiu.php

Upvotes: 4

Related Questions