Get Text Input Field Value in JavaScript

Find the inverse DTFT of the rectangular pulse spectrum described over the fundamental band
$(|\Omega| \leq \pi)$ by $X(\Omega) = rect(\Omega/2\Omega_c)$ for $\Omega_c \leq \pi.$