Title: JavaScript Generates Error, causing all proceeding JS to fail
Last modified: January 9, 2019

---

# JavaScript Generates Error, causing all proceeding JS to fail

 *  [jodriscoll](https://wordpress.org/support/users/jodriscoll/)
 * (@jodriscoll)
 * [7 years, 4 months ago](https://wordpress.org/support/topic/javascript-generates-error-causing-all-proceeding-js-to-fail/)
 * When navigating between a page that has a form utilized, the window.onload function
   is fired, at times, too fast, causing the urlForParam to return null for the 
   variable references throughout the JavaScript.
 * Demonstration video: [https://www.dropbox.com/s/iia3wrg6udbou3a/form-assembly-js-error.mp4](https://www.dropbox.com/s/iia3wrg6udbou3a/form-assembly-js-error.mp4)
 * Do you have any recommendations? I would prefer to not have to load it through
   an iframe to negate this issues potential cause.
 * Thanks!
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fjavascript-generates-error-causing-all-proceeding-js-to-fail%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

The topic ‘JavaScript Generates Error, causing all proceeding JS to fail’ is closed
to new replies.

 * ![](https://ps.w.org/formassembly-web-forms/assets/icon-256x256.png?rev=2897833)
 * [WP-FormAssembly](https://wordpress.org/plugins/formassembly-web-forms/)
 * [Support Threads](https://wordpress.org/support/plugin/formassembly-web-forms/)
 * [Active Topics](https://wordpress.org/support/plugin/formassembly-web-forms/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/formassembly-web-forms/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/formassembly-web-forms/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [jodriscoll](https://wordpress.org/support/users/jodriscoll/)
 * Last activity: [7 years, 4 months ago](https://wordpress.org/support/topic/javascript-generates-error-causing-all-proceeding-js-to-fail/)
 * Status: not resolved